import request from '@/utils/request'

// 获取车辆类型分页数据
export function getCarsimple (params) {
  return request({
    url: '/manager/truckType/page',
    method: 'GET',
    params
  })
}
// 删除车辆类型（用不了）
export function delCarsimple (id) {
  return request({
    url: `/manager/truckType/${id}`,
    method: 'DELETE'
  })
}
// 新增车辆类型
export function addCarsimple (data) {
  return request({
    url: '/manager/truckType',
    method: 'POST',
    data
  })
}
// 获取车辆类型详情
export function getCarsimpleInfo (id) {
  return request({
    url: `/manager/truckType/${id}`,
    method: 'GET'
  })
}
// 更新车辆类型
export function editCarsimple (data) {
  return request({
    url: `/manager/truckType/${data.id}`,
    method: 'PUT',
    data
  })
}
// 获取车辆类型信息列表，下拉框用
export function getCarsimpleList () {
  return request({
    url: '/manager/truckType/simple',
    method: 'GET'
  })
}
